package com.chy.blog_web.modular.web.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chy.blog_web.modular.web.entity.BoTimeLine;
import com.chy.blog_web.modular.web.mapper.BoTimeLineMapper;
import com.chy.blog_web.modular.web.service.IBoTimeLineService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * 描述：时间线表 service业务层
 * 作者：chenhuiyan
 * 时间：2020/04/06
 */
@Service
@Transactional(readOnly = true)
public class BoTimeLineServiceImpl extends ServiceImpl<BoTimeLineMapper, BoTimeLine> implements IBoTimeLineService {

    /**
     * 查询列表
     * @param params
     * @return
     */
    public List<Map<String, Object>> list(Map<String, Object> params){
        return baseMapper.list(params);
    }

    /**
     * 查询总数
     * @param params
     * @return
     */
    public int getCount(Map<String, Object> params){
        return baseMapper.getCount(params);
    }

    /**
     * 查询详情
     * @param id
     * @return
     */
    public Map<String, Object> getInfoById(String id){
        return baseMapper.getInfoById(id);
    }

}
